package org.xxpay.service.dao.mapper;

import org.apache.ibatis.annotations.Param;
import org.xxpay.core.entity.StatisticsPayPassage;
import org.xxpay.core.entity.StatisticsPayPassageExample;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface StatisticsPayPassageMapper {
    long countByExample(StatisticsPayPassageExample example);

    int deleteByExample(StatisticsPayPassageExample example);

    int deleteByPrimaryKey(@Param("payPassageId") Integer payPassageId, @Param("payPassageAccountId") Integer payPassageAccountId, @Param("statisticsDate") Date statisticsDate);

    int insert(StatisticsPayPassage record);

    int insertSelective(StatisticsPayPassage record);

    List<StatisticsPayPassage> selectByExample(StatisticsPayPassageExample example);

    StatisticsPayPassage selectByPrimaryKey(@Param("payPassageId") Integer payPassageId, @Param("payPassageAccountId") Integer payPassageAccountId, @Param("statisticsDate") Date statisticsDate);

    int updateByExampleSelective(@Param("record") StatisticsPayPassage record, @Param("example") StatisticsPayPassageExample example);

    int updateByExample(@Param("record") StatisticsPayPassage record, @Param("example") StatisticsPayPassageExample example);

    int updateByPrimaryKeySelective(StatisticsPayPassage record);

    int updateByPrimaryKey(StatisticsPayPassage record);

    int updateStatistics(StatisticsPayPassage updateRecord);

    long count4PayPassage(Map param);

    List<Map> countList4PayPassage(Map param);

    long count4PayPassageAccount(Map param);

    List<Map> countList4PayPassageAccount(Map param);
}